import {get, post, del, put} from "@/apis/http/request";
import {ProxyOrderAchieve} from "@/apis/model/proxy/ProxyOrderAchieveModel";

/**
* 得到列表
* @param params
*/
export const getProxyOrderAchieveList = (params: any) => get("/proxyOrderAchieve/list", params)

/**
* 得到分页列表
* @param params
*/
export const proxyOrderAchievePage = (params: any) => post("/proxyOrderAchieve/page", params)

/**
* 删除数据
* @param id
* @returns
*/
export const deleteProxyOrderAchieveById = (id: number) => del("/proxyOrderAchieve/delete/"+ id)

/**
* 新增数据
* @param param
*/
export const insertProxyOrderAchieve = (param: ProxyOrderAchieve) => post("/proxyOrderAchieve", param)

/**
* 更新数据
* @param param
*/
export const updateProxyOrderAchieve = (param: ProxyOrderAchieve) => put("/proxyOrderAchieve", param)